package common.enums;

/**
 * @title
 * @description
 * @usage
 * @copyright Copyright 2014  rrmj Corporation. All rights reserved.
 * @company 上海众多美网络科技有限公司
 * @author weseal
 * @create 2018/4/18
 */
public enum CategoryEnum implements BaseEnum<CategoryEnum,Integer> {

	COAT(1,"coat","外套"),
	SKIRT(2,"skirt","裤/裙"),
	SHOES(3,"shoes","鞋类"),
	LEATHER(4,"leather","皮革制品"),
	LUXURY(5,"luxury","奢侈品"),
	SPECIALTY(6,"specialty","特殊商品"),
	;
	private int code;
	private String name;
	private String message;

	CategoryEnum(int code,String name, String message) {
		this.code = code;
		this.name = name;
		this.message = message;
	}

	@Override
	public Integer getCode() {
		return null;
	}

	@Override
	public String getMessage() {
		return null;
	}

	public static CategoryEnum getByCode(int code) {
		for (CategoryEnum type : CategoryEnum.values()) {
			if (type.getCode().equals(code)) {
				return type;
			}
		}
		return null;
	}

}
